<?php
include_once("module/company/includes/company_class.php");
$user=new user();
//============================================================
if(!empty($_POST['Submit'])||!empty($_POST['Submit-next']))
{	
	$re=$user->update_user_info();
	if($_GET['type']<4)
	{
		if(!empty($_POST['Submit-next']))
			$admin->msg("main.php?action=m&m=company&s=cominfo&type=".($_GET['type']+1)."&menu=$_GET[menu]");
		else
			$admin->msg("main.php?action=m&m=company&s=cominfo&type=".$_GET['type']."&menu=$_GET[menu]");
	}
	else
		msg("main.php?menu=$_GET[menu]&action=msg&type=reg_next");
}
$tpl->assign("de",$de=$user->get_user_info($buid,$_GET['type']));
//=============================================================
$tpl->assign("country",country_list());
$tpl->assign("config",$config);
$tpl->assign("lang",$lang);
$output=tplfetch("admin_cominfo.htm");
?>